package com.erp.entity.goods;

import java.util.List;

/**
 * 多单位实体
 */
public class MultipleUnit {
    /**
     * 主键，自增
     */
    private Integer multipleUnitId;
    /**
     * 计量单位名称
     */
    private String multipleUnitName;
    /**
     * 父级ID，0 表示多单位最上级（主信息）
     */
    private Integer unitParentId;
    /**
     * 是否是基础单位，1 是基础单位，0 是普通副单位
     */
    private Integer unitIsBase;
    /**
     * 换算比例（当前单位对基础单位的换算比例）
     */
    private Integer multipleUnitRatio;
    /**
     * 公司ID
     */
    private Integer companyId;

    // 副单位列表（仅主单位需要）
    private List<MultipleUnit> subUnits;

    public Integer getMultipleUnitId() {
        return multipleUnitId;
    }

    public void setMultipleUnitId(Integer multipleUnitId) {
        this.multipleUnitId = multipleUnitId;
    }

    public String getMultipleUnitName() {
        return multipleUnitName;
    }

    public void setMultipleUnitName(String multipleUnitName) {
        this.multipleUnitName = multipleUnitName;
    }

    public Integer getUnitParentId() {
        return unitParentId;
    }

    public void setUnitParentId(Integer unitParentId) {
        this.unitParentId = unitParentId;
    }

    public Integer getUnitIsBase() {
        return unitIsBase;
    }

    public void setUnitIsBase(Integer unitIsBase) {
        this.unitIsBase = unitIsBase;
    }

    public Integer getMultipleUnitRatio() {
        return multipleUnitRatio;
    }

    public void setMultipleUnitRatio(Integer multipleUnitRatio) {
        this.multipleUnitRatio = multipleUnitRatio;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public List<MultipleUnit> getSubUnits() {
        return subUnits;
    }

    public void setSubUnits(List<MultipleUnit> subUnits) {
        this.subUnits = subUnits;
    }
}
